package com.by.bean;

import com.by.common.group.IUpdate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.sql.Timestamp;

/**
 * @author HY
 * @version 1.0
 * @description
 * @date 2025/2/14
 * @since JDK21
 */
@Data
@ApiModel("管理员用户")
@SuppressWarnings("all")
public class Management {
    @ApiModelProperty("修改时ID不能为空！")
    @NotBlank(message = "id不能为空！",groups = {IUpdate.class})
    String id;
//    @ApiModelProperty("昵称")
//    String name;
//    @ApiModelProperty(value = "手机号")
//    String mobile;
    @ApiModelProperty(value = "用户名不能为空！")
    @NotBlank(message = "用户名不能为空！")
    String username;
    @ApiModelProperty(value = "密码不能为空！")
    @NotBlank(message = "密码不能为空！")
    String password;
//    @ApiModelProperty(value = "性别 0女 1男")
//    int gender;
    @ApiModelProperty(value = "类型 1 客户端 2 供应商 3 货代端 4 后台")
    int type;
    @ApiModelProperty(value = "状态 0正常 1禁用")
    int status;
    @ApiModelProperty(value = "创建时间")
    Timestamp createTime;
    @ApiModelProperty(value = "修改时间")
    Timestamp updateTime;
    @ApiModelProperty(value = "是否删除 0正常 1删除")
    int isdel;
//    @ApiModelProperty(value = "角色 0管理员 1普通用户")
//    int management;
}
